#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

void test1()
{
	int a[10] = { 5,3,1,9,6,4,7,8,0,2 };
	Heap hp;
 	HeapCreate(&hp, a, 10);
	
	HeapPrint(&hp);

	HeapPush(&hp, 10);
	HeapPush(&hp, 20);
	HeapPush(&hp, 18);
	HeapPush(&hp, 1);
	HeapPush(&hp, 6);
	HeapPush(&hp, 4);
	HeapPrint(&hp);

	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPrint(&hp);

}
int main()
 {
 	test1();
}